<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-bind</title>
</head>
<style>
    .active {
        border: 5px solid red;
    }
</style>

<body>
    <div id="app">
        <img :src="imgUrl" alt="">
        <br>
        <img v-bind:src="imgUrl" alt="">
        <br>

        <img :src="imgUrl" alt="" :title="imgTitle+'!!!'"><br><br>
        <img :src="imgUrl" :title="imgTitle+'!!!'" :class="{active:isAcitve}" @click="togoActive">

    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

    <script>
        var app = new Vue({
            el: "#app",
            data: {
                imgUrl: "../imge/wa1.jpg",
                imgTitle: "好吃的鱼",
                isAcitve: false,

            },
            methods: {
                togoActive: function () {
                    this.isAcitve = !this.isAcitve;
                }
            }
        })
    </script>

</body>

</html>